package com.jxmcloud.business.cut.enums;

import com.xlcloud.platform.api.config.IAppMsg;
import com.xlcloud.platform.api.config.IEnum;
import com.xlcloud.platform.util.PublicUtil;
import lombok.Getter;

/**
 * @Description 砍一刀拉新评论开放枚举类
 * @Author cjy
 * @Date 下午4:29 2025/2/11
 **/
@Getter
public enum DemoEnum implements IEnum<String, String, DemoEnum>, IAppMsg {
    NO("0", "不开放"),
    YES("1", "开放"),

    ;

    private String type;
    private String cname;

    DemoEnum(String type, String cname) {
        this.type = type;
        this.cname = cname;
    }

    @Override
    public String v() {
        return cname;
    }

    public String vs(Object ... params) {
        return PublicUtil.format(this.cname, params);
    }

    @Override
    public String k() {
        return this.type;
    }
}